<!DOCTYPE html>
<html lang="en">
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Sugira uma Ação</title>

    <!-- Bootstrap -->
    <link href="/forms/layout/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
  
<div class="container-fluid">
<div class="row">
    <form name="formulario" action="<?php print $_SERVER['PHP_SELF'];?>" method="post" role="form">
	  <div class="row">
		  <div class="form-group col-xs-8">
		  	<label for="nome">Nome</label>
		  	<input type="text" name="nome" class="form-control" id="nome" value="<?php print $_POST['nome']; ?>" >
		  </div>
	  </div>
	  
	  <div class="row">
		  <div class="form-group col-xs-4">
		  	<label for="matricula">Matrícula</label>
		  	<input type="text" name="matricula" class="form-control" id="matricula" value="<?php print $_POST['matricula']; ?>" >
		  </div>
	  </div>
	  <div class="row">
		  <div class="form-group col-xs-8">
			<label for="email">E-mail</label>
			<input type="text" name="email" class="form-control" id="email" value="<?php print $_POST['email']; ?>" >
		  </div>
	  </div>
	  
	  <div class="row">
		  <div class="form-group col-xs-4">
			<label for="telefone">Telefone</label>
			<input type="text" name="telefone" class="form-control" id="telefone" value="<?php print $_POST['telefone']; ?>" >
		  </div>
	  </div>
	  
	  <div class="row">
		  <div class="form-group col-xs-4">
			<label for="celular">Celular</label>
			<input type="text" name="celular" class="form-control" id="celular" value="<?php print $_POST['celular']; ?>" >
		  </div>
	  </div>
	 
	 <div class="row">
		  <div class="form-group col-xs-4">
			<label for="tipo_acao">Tipo de ação</label>
			<select name="tipo_acao" class="form-control">
			  <option value="Civel" <?php print ($_POST['tipo_acao'] == 'Civel')? 'selected': ''; ?> >Civel</option>
			  <option value="Trabalhista" <?php print ($_POST['tipo_acao'] == 'Trabalhista')? 'selected': ''; ?> >Trabalhista</option>
			  <option value="Administrativa" <?php print ($_POST['tipo_acao'] == 'Administrativa')? 'selected': ''; ?> >Administrativa</option>
			  <option value="Comercial" <?php print ($_POST['tipo_acao'] == 'Comercial')? 'selected': ''; ?> >Comercial</option>
			  <option value="Outro" <?php print ($_POST['tipo_acao'] == 'Outro')? 'selected': ''; ?> >Outro</option>
			</select>
		  </div>
	  </div>
	  
	  <div class="row">
		  <div class="form-group col-xs-12">
			<label for="descricao">Descrição</label>
			<textarea class="form-control" rows="5" name="descricao" id="descricao" ><?php print $_POST['descricao']; ?></textarea>
		  </div>
	  </div>
	  <div class="row">
		  <div class="form-group col-xs-12">
		  <input type="hidden" name="acao" value="inserir" />
		  <button type="submit" class="btn btn-default">Enviar</button>
		 </div>
	  </div>
	</form>
</div>
</div>
<?php include "recebe_dados.php"; ?>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="/forms/layout/js/bootstrap.min.js"></script>
  
</body>
</html>